package com.label.grade.entity.Do;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.AllArgsConstructor;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * 画像-学生成绩-课程成绩
 * @TableName COURSE_GRADE
 */
@TableName("course_grade")
@Data
public class CourseGrade extends Model<CourseGrade> implements Serializable {
    /**
     * id
     */
    @TableId(type = IdType.ASSIGN_ID)
    private Long id;

    /**
     * 学号
     */
    private String stuNumber;

    /**
     * 姓名
     */
    private String stuName;

    /**
     * 课程编号
     */
    private String courseId;

    /**
     * 课程名称
     */
    private String courseName;

    /**
     * 考试日期
     */
    private String examDate;

    /**
     * 课程成绩
     */
    private Double score;

    /**
     * 绩点成绩
     */
    private Double gpaScore;

    /**
     * 学分
     */
    private Double credit;

    /**
     * 任课教师姓名
     */
    private String teacherName;

    /**
     * 任课教师工号
     */
    private String teacherNumber;

    /**
     * 创建人
     */
    private String createBy;

    /**
     * 创建时间
     */
    private Date createTime;

    /**
     * 更新时间
     */
    private Date updateTime;

    /**
     * 更新人
     */
    private String updateBy;

    /**
     * 备注
     */
    private String remark;

    private static final long serialVersionUID = 1L;

    public CourseGrade() {
        this.score = 0D;
        this.gpaScore = 0D;
        this.credit = 0D;
    }

    public CourseGrade(String stuNumber, String stuName, String courseName, String examDate, Double credit) {
        this.stuNumber = stuNumber;
        this.stuName = stuName;
        this.courseName = courseName;
        this.examDate = examDate;
        this.credit = credit;
    }
}
